*{
  word-break: break-all;
}
._show{
  visibility: visible !important;
}
.serif-text{
  font-family: 'Noto Serif SC',"Crimson Pro", 'ui-serif',Georgia, Cambria, "Times New Roman", Times, serif;
}
.console-text{
  font-family: "JetBrains Mono","Misans",ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;

}
.czig-text{
  background-image: linear-gradient(180deg, rgb(222, 41, 16) 25%, rgb(255, 157, 0) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
:hover>.hover-primary-text{
  // background-image: linear-gradient(125deg, #006b2c 20%, #1a842f 88.8%);
  // background-image: linear-gradient(125deg, #00471b 20%, #b8860b 88.8%);
  background-image: linear-gradient(125deg, #006b2c 20%, #1a842f 88.8%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent !important;
}
.hover-self-primary-text:hover{
  background-image: linear-gradient(125deg, #006b2c 20%, #1a842f 88.8%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent !important;
}
.primary-text{
  background-image: linear-gradient(125deg, #006b2c 20%, #1a842f 88.8%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent !important;
}
*:hover>.hover-primary-text{
  background-image: linear-gradient(125deg, #006b2c 20%, #1a842f 88.8%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent !important;
}
.primary-bg{
  background-image: linear-gradient(125deg, #006b2c 20%, #1a842f 88.8%);
}
.primary-bg-10{
  background-image: linear-gradient(125deg, #006b2c 20%, #1a842f 88.8%);
  background-image: linear-gradient(125deg, rgba(34, 99, 251, 0.0823529412) 20%, rgba(128, 31, 255, 0.0823529412) 88.8%);
}
.normal-color{
  color:#3c3e55
}
#nprogress .bar {
  background: #2262fb!important;
}

// .slide-fade-enter-from{
//   opacity: 0;
  
// }
// .slide-fade-enter-active {
//   transition: all 0.3s ease;
// }
// .slide-fade-enter-to {
//   opacity: 1;
//   // transform: translate3d(0, 0, 1%);
// }
// .slide-fade-leave-from {
//   opacity: 1;
//   left:0;
//   width: fit-content;
// }
// .slide-fade-leave-active {
//   transition: all 0.3s ease;
//   position: relative;
//   display: none;
// }
// .slide-fade-leave-to {
//   opacity: 0;
//   left:-20%;
//   width: 0;
// }

.commonPage{
  padding-top: 24px;
  padding-left: 16px;
  padding-right: 24px;
  padding-bottom: 16px;
  .row{
    --bs-gutter-x: 12px;
    --bs-gutter-y: 12px;
  }
  .big_header{
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    .icon{
      font-size: 0;
      color:#2262fb
    }
    .title{
      font-size: 20px;
      font-weight: bold;
      color:#3c3e55;
      margin-left: 8px;
    }
  }
  .stikyPanel{
    position:sticky;
    top:24px;
  }
  .panel{
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 1);
    padding: 24px;
    display: flex;
    flex-direction: column;
    // width: -moz-fit-content;
    width: 100%;
    // margin-bottom: 24px;
    overflow: hidden;
    // min-width: 600px;
    &>._header{
      display: flex;
      align-items: center;
      margin-bottom: 16px;
      .icon{
        font-size: 0;
        color:rgb(34, 98, 251)
      }
      .title{
        font-size: 16px;
        font-weight: bold;
        color:#5F6388;
        margin-left: 8px;
      }
      
    }
    .listbox{
      display:flex;
      overflow: hidden;
      .li{
        //text-break
        word-break : normal;
        width:100%;
        border:1px solid #ededed;
        padding:8px 8px;
        ._header{
          font-size:18px;
          font-weight: 600;
          color: #5F6388;
        }
      }
    }
    .cards{
      display: flex;
      flex-wrap: wrap;
      .card{
        margin-right: 16px;
        margin-bottom: 16px;
        border:1px solid #ededed;
        padding:12px 16px;
        border-radius: 8px;
        width:calc(calc(100% - 48px) / 4);
        &:nth-child(4n){
          margin-right: 0;
        }
      }
    }
    .commonHeader{
      display: flex;
      flex-direction: column;
      padding-bottom: 16px;
      .title{
        font-size: 24px;
        font-weight: 600;
        color:#3c3e55;
        padding-bottom: 8px;
        .icon{
          margin-right: 8px;
          word-wrap: break-word;
        }
      }
      .desc{
        font-size: 16px;
        color:#5F6388
      }
    }
    .commonCards{
      padding-top:8px;
      padding-left: 6px;
      padding-right: 6px;
      // padding-bottom: 16px;
      .card{
        border-radius: 16px;
        padding: 16px;
        border:1px solid #d4d7ee;
        transition: all 0.2s ease-out;
        box-shadow: 0 0 0 0 #e1e4ff;
        margin-bottom: 12px;
        margin-top: 12px;
        cursor: pointer;
        &:hover{
          box-shadow: 0 0 0 5px rgb(235, 236, 248)
        }
        ._title{
          border-bottom:1px solid #d4d7ee;
          color:#5F6388;
          font-size: 18px;
          line-height: 26px;
          font-weight: 600;
          padding-bottom:10px;
          margin-bottom:12px;
        }
      }
      // .card{
      //   margin-right: 16px;
      //   margin-bottom: 16px;
      //   border:1px solid #ededed;
      //   padding:12px 16px;
      //   border-radius: 8px;
      //   width:calc(calc(100% - 48px) / 4);
    }
  }
  .doc{
    h2{
      font-size: 24px;
      font-weight: 600;
      color:#3c3e55;
      margin-bottom: 8px;
      // margin-top: 16px;
    }
    p{
      margin-top: 8px;
      margin-bottom: 8px;
      font-size: 16px;
      color:#3c3e55;
    }
  }
}
a[href]{
  // color:rgba(34, 98, 251, 1);
  color:#006b2c;
}
.interactivePage{
  display: flex;
  height:100vh;
  width:100%;
  align-items: center;
  justify-content: center;
  .panel{
    width: 100%;
    height:auto;
    height:-moz-fit-content;
    height:fit-content;
    max-height: 70%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 24px;
    padding: 36px;
    ._header{
      color:#5F6388;
    }
    ._content{
      margin-top: 24px;
      line-height: 24px;
      font-size: 16px;
      p{
        margin-bottom: 4px;
        &[btn]{
          margin-top: 24px;
        }
      }
    }
    .tips{
      margin:16px 0;
      font-size: 12px;
      line-height: 1em;
      color:#999;
      a{
        cursor: pointer;
        color:rgb(34, 98, 251)
      }
    }
    ._footer{
      margin-top: 8px;
      display: flex;
      justify-content: flex-end;
      height:16px;
      opacity: 0.5;
      background-image: url('/logo.webp');
      background-repeat: no-repeat;
      background-position: center;
      background-size: auto 100%;
    }
  }
}



.czigerr .el-message-box__message{
  width:100%;
  word-wrap: break-word;
  word-break: break-all;
}

.teambox{
  display: block;
  // background-image: linear-gradient(to bottom,
  // rgb(250, 247, 255),
  // rgb(255,255,255)
  // );
  background: #fff;
  border:1px solid transparent;
  box-shadow: none;
  transition: all .3s ease;
  // transition-delay: .1s;
  &:hover{
    background: linear-gradient(220deg, #f3f7ff .79%, #fff 63.4%);
    border-color: #635bff;
    box-shadow: 0 15px 35px -2px rgba(72, 117, 231, .1), 0 5px 15px 0 rgba(66, 81, 162, .1);
  }
  --el-border-radius-base:8px;
  .teamname{
    font-size: 28px;
    font-weight: 600;
    color:#3c3e55;
    margin-bottom: 12px;
    word-wrap: break-word; /* 旧版浏览器支持 */
    overflow-wrap: break-word; /* 现代浏览器支持 */
    width:100%;
  }
  .teamdesc{
    font-size: 14px;
    color:#5F6388;
    line-height: 1.2em;
    margin-bottom: 8px;
    word-wrap: break-word; /* 旧版浏览器支持 */
    overflow-wrap: break-word; /* 现代浏览器支持 */
  }
  
  .teamtitle{
    margin-top: 12px;
    font-size: 12px;
    margin-bottom: 6px;
    color:#5F6388;
    font-weight: 600;
    font-style: italic;
    font-family: Arial, Helvetica, sans-serif;
  }
  .teamShow{
    font-size: 28px;
    font-family: Lato;
    font-style: italic;
    font-weight: 600;
    line-height: 1em;
    color: #3c3e55
  }
}

.teamidentity{
  padding: 16px;
  border-radius: 8px;
  background-color: #2c2e46;
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  .useravatar{
    margin-right: 8px;
    display: flex;
    align-items: center;
  }
  .userinfo{
    display: flex;
    flex-direction: column;
    width: calc(100% - 28px - 20px);
    flex:1;
    .username{
      // 超出截断
      overflow:hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-size: 17px;
      margin-bottom: 4px;
      font-weight: 600;
      color:#F2C688;
    }
    .userrole{
      border: 1px solid #F2C688;
      border-radius: 4px;
      padding: 4px 4px;
      font-size: 10px;
      line-height: 1em;
      color:#F2C688;
      width:fit-content;
      letter-spacing: 1px;
    }
  }
}

.hr{
  background-color:#5F6388;
  height:1px;
  width: 100%;
  opacity: 0.5;
  margin-bottom: 4px;
}

.aichat{
  background-color: transparent !important;
  padding: 0px !important;
  // padding-bottom: 48px !important;
  .i-loading {
    display: inline-block;
    width: 14px;
    height: 14px;
    vertical-align: baseline;
    border-radius: 3px;
    margin-left: 2px;
    animation: 0.75s ease infinite spinner-grow;
    background-color: rgba(34, 98, 251, 0.5);
  }
  .user{
    display: flex;
    margin-bottom: 24px;
    // flex-direction: row-reverse;
    // align-items: flex-start;
    width: 100%;
    flex-direction: column;
    align-items: flex-end;
  }
  .assistant{
    display: flex;
    margin-bottom: 24px;
    align-items: flex-start;
    width: 100%;
    flex-direction: column;
  }
  .system{
    display: flex;
    margin-bottom: 24px;
    align-items: flex-start;
    width: 100%;
    flex-direction: column;

    p{
      // margin: 0 !important;
    }
  }
  
  .i-loading::before {
    content: 'loading';
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }
  
  @keyframes spinner-grow {
    0% {
      transform: scale(0);
    }
    50% {
      opacity: 1;
      transform: none;
    }
  }
  .chatList .system .el-avatar{
    --el-avatar-bg-color:rgba(144, 77, 245,0.95) !important;
    backdrop-filter: blur(8px);
    margin-right:10px;
    flex: 0 0 auto;
  }
  .chatList .user .el-avatar{
    --el-avatar-bg-color:rgba(63, 124, 255, 0.95) !important;
    backdrop-filter: blur(8px);
    margin-left: 10px;
    flex: 0 0 auto;
  }
  .chatList .assistant .el-avatar{
    // --el-avatar-bg-color:rgba(144, 77, 245,0.95) !important;
    backdrop-filter: blur(8px);
    margin-right:10px;
    flex: 0 0 auto;
  }
  .chatList{
    // padding-bottom: 16px;
    &>div>div{
      // max-width: calc(100% - 50px - 10px);
      max-width: calc(100% - 10px);
      width: fit-content;
      // max-width: 550px;
      // min-width: 80px;
    }
    .active-text{
        text-fill-color: transparent;
        -webkit-text-fill-color: transparent;
        animation-delay: .1s;
        animation-duration: 1s;
        animation-iteration-count: infinite;
        animation-timing-function: linear;
        animation-name: loading-shimmer;
        background: linear-gradient(to right, #cdcdcd60, #3b82f6 50%, #cdcdcd60);
        background-clip: text;
        -webkit-background-clip: text;
        // background-repeat: no-repeat;
        background-size: 500px 100%;
        display: inline-block;
      }
      a[href]{
        // color:#3b82f6;
        color:#a2770a !important;
      }
      @keyframes  loading-shimmer{
        0% {
          background-position-x: 0;
        }
        100% {
          background-position-x: 500px;
        }
    }
  }
  .chatList{
    .czig-code-block{
      .language-label{
        font-family: "JetBrains Mono","Misans",ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;
      }
      // .hljs{
      //   font-size: 0.875rem !important;
      // }
      // background-color: #f5f5f5;
    }
    strong,b{
      color:#9a720b !important;
      font-weight: 600;
      font-family: "Misans",ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    }
    code.hljs{
      // --tw-bg-opacity: 1 !important;
      border-radius:4px;
      background-color: rgb(241 245 249 / 1 ) !important;
    }
    pre code.hljs{
      background-color: transparent !important;;
    }
    code, kbd, samp, pre{
      font-family: "JetBrains Mono","Misans",ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;
    }
    *:not(.czig-code-block *,.katex *){
      font-size: inherit;
      line-height: inherit;
    }
    blockquote{
      border-left: 2px solid rgba(0, 0, 0, .25);
      margin: 0;
      padding: 0 0 0 0.5em;
      line-height: 1.4em !important;
      font-size: 1em !important;
    }
    h1{
      line-height: 2em !important;
      font-size: 1.45em !important;
      font-weight: 700;
      margin-bottom: .3em;
      margin-top: .45em;
    }
    h2{
      line-height: 1.7em !important;
      font-size: 1.35em !important;
      font-weight: 700;
      margin-bottom: .25em;
      margin-top: .35em;
    }
    h3{
      line-height: 1.6em !important;
      font-size: 1.2em !important;
      font-weight: 600;
      margin-bottom: .2em;
      margin-top: .3em;
    }
    h4{
      line-height: 1.4em !important;
      font-size: 1.1em !important;
      margin-bottom: .15em;
      margin-top: .25em;
    }
    &>*{
      margin-bottom: 0.5em;
    }
    ol,ul{
      padding-left: 20px;
      overflow-anchor: auto;
    }
    ul{
      padding-left: 16px;
    }
    li{
      padding-left: 4px;
      margin-bottom: 6px;
      &::marker{
        color: rgba(0, 0, 0, .5);
      }
    }
    ul>li{
      list-style-type: circle;
    }
    ol>li{
      list-style-type: decimal;
    }
    p{
      margin-bottom: 0.55em; 
    }
    table{
      border-collapse: collapse;
      border-spacing: 0;
      display: block;
      overflow: auto;
      width: 100%;
      max-width: max-content;
      border: 1px solid #d0d7de;
      border-radius: 8px;
    }
    thead tr{
      background-color: rgba(0, 0, 0, .06) !important;
      border-top: 0;
    }
    tr{
      border-top: 1px solid rgba(0, 0, 0, .12);
    }
    th{
      min-width:128px;
      padding: 12px 18px;
      border-right: 1px solid rgba(0, 0, 0, .12);
      &:last-child{
        border-right: 0;
      }
    }
    td{
      padding: 12px 18px;
      border-right: 1px solid rgba(0, 0, 0, .12);
      &:last-child{
        border-right: 0;
      }
    }
    &>*:last-child{
      margin-bottom: 0 !important;
    }
  }
  .chatList .chatcontent{
    &.userchatbg{
    }
    font-size: 15px;
    line-height: 1.45em;
    color:#222724;
    word-break: break-all;
  }
}
.chat_animate_in{
  // will-change: opacity, transform;
  opacity: 0;
  animation: ChatFadeIn 1.1s ease-out forwards;
  animation-delay: 50ms;
}
@keyframes ChatFadeIn {
  from {
    opacity: 0;
    // transform: translateY(6px);
  }
  to {
    opacity: 1;
    // transform: translateY(0);
  }
}
.scroll{
  overflow-y: auto;
  overflow-x: hidden;
  // scroll-behavior: smooth;
  height: fit-content;
  max-height: 100%;
  flex-shrink: 1;
  &.running{
    will-change: scroll-position;
  }
  &.active{
    flex:1 1 0;
    height: 100vh;
  }
  transition: all .3s;
  &::-webkit-scrollbar {
    width:0;
    height:0;
  }
}
.ainput{
  flex: 0 0 0;
  // padding-top:6px;
  padding-bottom:env(safe-area-inset-bottom);
  width: 100%;
  z-index: 10;
  .ainput__wrapper{
    width:100%;
    background-color: #fff;
    border-radius: 8px;
    padding:10px;
    padding-left: 18px;
    display: flex;
    // flex-direction: column;
    align-items: flex-end;
    transition: all 0.25s ease;
    position: relative;
    // border:1px solid transparent;
    border-radius: 25px;
    font-size: 0;
    box-shadow: 0px 2px 5px 1px #a8a29e11;
    .clickWrapper{
      position: absolute;
      z-index: 0;
      width: 100%;
      height: 100%;
      top:0;
      left:0;
    }

    &._active,&:hover{
      // cursor: pointer;
      // border-color:rgba(144, 77, 245,0.2);
      // border-color:#a8a29e33;
      // box-shadow: 0px 1px 4px 0px #a8a29e22;
    }
    &:focus-within{
      // background-color: #fffffffc;
      // cursor: inherit;
      // border-radius: 25px;
      // box-shadow: 0px 1px 4px 0px #a8a29e22;
      // // border-color:rgba(144, 77, 245,0.8);
      // border-color:#cbd5e1;
    }
    // &::before {
    //   content: "";
    //   position: absolute;
    //   top: -2.5px;
    //   left: -2.5px;
    //   right: -2.5px;
    //   bottom: -2.5px;
    //   z-index: -1;
    //   border-radius: 18.5px;
    //   opacity: 0;
    //   transition: all 0.25s ease;
    //   background: linear-gradient(135deg, rgb(34, 98, 251) 0%, rgba(144, 77, 245,1) 50%)
    // }
    // &:hover::before{
    //   opacity: 0.5;
    // }
    // &:focus-within:before {
    //   opacity: 1;
    //   box-shadow: 2px 2px 0px 2px rgba(144, 77, 245,0.3),
    // }
  }
  .textarea{
    position: relative;
    z-index: 1;
    // border-radius: 16px;
    color:#3c3e55;
  }
  ._input .textarea__inner{
    border:0px;
    box-shadow: none;
    background: transparent;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-left: 2px;
    padding-right: 2px;
    font-size: 14px;
    font-weight:600;
    color:inherit;
    outline: none;
    &::-webkit-scrollbar {
      width:4px;
      height:0;
    }
  }
  ._number{
    display: flex;
    // width:100%;
    justify-content: space-between;
    align-items: flex-end;
    &>span{
      padding-bottom: 4px;
      font-size: 16px;
      opacity: 0.5;
      color:rgb(56, 25, 102);
    }
    button{
      position: relative;
      z-index: 1;
    }
  }
}

.projectbox{
  transition: all .3s ease;
  border-color: #635bff00;
  box-shadow: 0 15px 35px -2px rgba(220, 222, 228, 0.1), 0 5px 15px 0 rgba(159, 160, 162, 0.1);
  &:not(.nohover):hover,&.force{
    background: linear-gradient(220deg, #f3f7ff .79%, #fff 63.4%);
    border-color: #635bff;
    box-shadow: 0 15px 35px -2px rgba(72, 117, 231, .1), 0 5px 15px 0 rgba(66, 81, 162, .1);
  }
}
.modelbox{
  display: block;
  background: #fff;
  // border:1px solid transparent;
  box-shadow: none;
  transition: all .3s ease;
  border-color: #635bff00;
  // box-shadow: 0 15px 35px -2px rgba(220, 222, 228, 0.1), 0 5px 15px 0 rgba(159, 160, 162, 0.1);
  &:not(.nohover):hover,&.force{
    // background: linear-gradient(220deg, #f3f7ff .79%, #fff 63.4%);
    // border-color: #635bff;
    border-color:#006b2c;
    // box-shadow: 0 15px 35px -2px rgba(72, 117, 231, .1), 0 5px 15px 0 rgba(66, 81, 162, .1);
  }
  position: relative;
  overflow: hidden;
}

.model_banner{
  background: linear-gradient(270deg, #b05bff -8.33%, #2951ff 118.18%);
  border-radius: 0 0 0 8px;
  color: var(--fill-color-bg-white, #fff);
  font-size: 12px;
  font-style: italic;
  font-weight: 500;
  height: 25px;
  letter-spacing: .6px;
  line-height: 25px;
  padding: 0 8px;
  position: absolute;
  right: 0;
  text-align: center;
  top: 0;
  white-space: nowrap;
}

.truncate-multiline {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4; /* 限制为3行 */
  overflow: hidden;
  text-overflow: ellipsis;
}

.normal-color-force{
  color:#3c3e55 !important;
}
.katex {
  font-size: 1.3em !important;
  font-family:  KaTeX_Math, Times New Roman;
  *{
    font-family: KaTeX_Math, Times New Roman,serif !important
  }
}

.el-avatar{
  background-color: #fff;
}